package com.hydl.power.mapper;


import com.hydl.power.pojo.Navbar;
import com.hydl.power.pojo.OrderDeliveryMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDeliveryMenuMapper {
    int deleteByPrimaryKey(String id);

    int insert(OrderDeliveryMenu record);

    OrderDeliveryMenu getOrderDeliveryMenuByNavId(String navId);

    int updateByNavId(@Param("id") String id,@Param("name") String name);

    List<OrderDeliveryMenu> getAll();

    /**
     * 获取区域
     * @return
     */
    List<OrderDeliveryMenu> getAllByPId();

    /**
     * 获取单位/配电房
     * @param pId
     * @return
     */
    List<OrderDeliveryMenu> getAllByPId1(@Param("pId") String pId);

    OrderDeliveryMenu getAllByNavId(@Param("navId")String navId);

}